<?php
ini_set('magic_quotes_sybase', 0);
define('REDMD', 1);
define('DEBUG_ENABLED', true);
date_default_timezone_set('Pacific/Auckland');

define('SRV', 1);
if (SRV == 1) {
  //PATH
  define('PATH', '/pzcolg/');
  //DB
  define('DB_HOST', 'localhost');
  define('DB_LOGIN', 'root');
  define('DB_PASS', '911');
  define('DB_NAME', 'pzcolg');
  //SMTP
  define('SMTP_HOST', 'ssl://smtp.gmail.com:465');
  define('SMTP_AUTH', true);
  define('SMTP_USER_ATDN', 'wangsufang1957@gmail.com');
  define('SMTP_PASS_ATDN', 'weida911');
} else if (SRV == 2) {
  //PATH
  define('PATH', '/_pz/pzcolg/');
  //DB
  define('DB_HOST', 'mysql3.webhost.co.nz');
  define('DB_LOGIN', 'pzcolg');
  define('DB_PASS', 'luckybox4mail');
  define('DB_NAME', 'pzcolg');
  //SMTP
  define('SMTP_HOST', 'ssl://smtp.gmail.com:465');
  define('SMTP_AUTH', true);
  define('SMTP_USER_ATDN', 'wangsufang1957@gmail.com');
  define('SMTP_PASS_ATDN', 'weida911');
}

//CLOG
require_once 'colg/colgutils.class.php';

define('DIP_GRDS', serialize(array(array('INC', -1, 0, -1), array('E', 0, 40, 2), array('D', 40, 50, 2), array('C', 50, 60, 1), array('B', 60, 70, 1), array('B+', 70, 75, 1), array('A', 75, 85, 1), array('A+', 85, 100, 1))));


define('NCEA_T0_1', 'Term 0 Class 1');
define('NCEA_T0_2', 'Term 0 Class 2');
define('NCEA_T1234', 'Term 1/2/3/4');
define('NCEA_TS', serialize(array(NCEA_T0_1, NCEA_T0_2, NCEA_T1234)));

define('PT_DIPLOMA', 'Diploma');
define('PT_LANGUAGE', 'Language');
define('PT_NCEA', 'NCEA');
define('PT_NCEA_ENGLISH', 'NCEA English');
define('PTS', serialize(array(PT_DIPLOMA, PT_LANGUAGE, PT_NCEA, PT_NCEA_ENGLISH)));

define('UT_ADMIN', 'Admin');
define('UT_STAFF', 'Mgmt');
define('UT_FINANCE', 'Finance');
define('UT_MARKETING', 'Marketing');
define('UTS', serialize(array(UT_ADMIN, UT_STAFF, UT_FINANCE, UT_MARKETING)));

define('VT_CITIZEN', 'Citizen');
define('VT_PR', 'PR');
define('VT_INTERIM', 'Interim');
define('VT_STUDENT', 'Student');
define('VT_VISITOR', 'Vistor');
define('VT_VOC', 'VOC');
define('VT_WORKING', 'Working');
define('VT_WH', 'Working Holiday');
define('VTS', serialize(array(VT_CITIZEN, VT_PR, VT_INTERIM, VT_STUDENT, VT_VISITOR, VT_VOC, VT_WORKING, VT_WH)));

define('BPT_TUITION', 'Tuition Fee');
define('BPT_ACCOMMODATION', 'Accommodation Fee');
define('BPT_INSURANCE', 'Insurance Fee');
define('BPT_ADMIN', 'Admin Fee');
define('BPT_PICKUP', 'Airport Pickup Fee');
define('BPT_EXAM', 'Exam Fee');
define('BPT_HOMESTAY', 'Homestay Admin Fee');
define('BPT_MATERIAL', 'Material Fee');
define('BPT_REGISTRATION', 'Registration Fee');
define('BPT_OTHER', 'Other Fee');
define('BPT_RESIT', 'Re-sit Fee');
define('BPT_BOOKS', 'Books Fee');
define('BPT_CERTIFICATE', 'Certficate Fee');
define('BPT_COPY', 'Copy Fee');
define('BPTS', serialize(array('total_academic' => BPT_TUITION, 'total_accommodation' => BPT_ACCOMMODATION, 'total_insurance' => BPT_INSURANCE, 'fee_admin' => BPT_ADMIN, 'fee_pickup' => BPT_PICKUP, 'fee_exam' => BPT_EXAM, 'fee_homestay' => BPT_HOMESTAY, 'fee_material' => BPT_MATERIAL, 'fee_registration' => BPT_REGISTRATION, 'fee_other' => BPT_OTHER, 'fee_resit' => BPT_RESIT, 'fee_books' => BPT_BOOKS, 'fee_certificate' => BPT_CERTIFICATE, 'fee_copy' => BPT_COPY)));

//DB
define('DB_CHARSET', 'latin1');

//INSTALL LOGIN
define('INSTALL_USER', 'admin');
define('INSTALL_PASS', 'adminpass');

//TINYMCE
define('TINYMCE_UPLOAD', 'tinymce_upload');

//EXT
define('EXT_DIR', '../ext/');
define('PLGN_DIR', EXT_DIR . 'plugins/');
define('TH_DIR', EXT_DIR . 'themes/');

//METADATA
define('DOMAIN', $_SERVER["SERVER_NAME"]);
define('HOME_DIR', 'web/');
define('URL', 'http://' . DOMAIN . PATH);

define('SESSION', DB_NAME);
define('SYS', 'sys_');
define('PG', 'pg_');
define('UPLOAD_DIR_PLGN', '../upload/plugins/');
define('TMP_DIR', '../tmp/');
define('SIZE', 20);
?>